import java.util.ArrayList;
import java.util.Date;

class Loan {
    private double amount;

    public Loan(double amount) {
        this.amount = amount;
    }

    @Override
    public String toString() {
        return "Loan amount: " + amount;
    }
}

class Circles {
    private double radius;

    public Circles(double radius) {
        this.radius = radius;
    }

    @Override
    public String toString() {
        return "Circle with radius: " + radius;
    }
}

public class ArrayListExample {
    public static void main(String...args) {
        var mixed = new ArrayList<>();
        mixed.add(new Loan(10000.0));
        mixed.add(new Date());
        mixed.add("Princess!");
        mixed.add(new Circles(5.0));
        mixed.forEach(System.out::println);
    }
}
